#!/bin/sh

# Give a r\w permissions for "nobody" user
find /opt/share/znc/ -type f | xargs chmod 666
find /opt/share/znc/ -type d | xargs chmod 777

ENABLED=yes
PROCS=znc
ARGS="-d /opt/share/znc"
PREARGS=""
DESC=$PROCS
PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

. /opt/etc/init.d/rc.func
